clear all
cap log close
do "$data/PSID/marriage_history/MH85_17"

ren *, lower
gen uniqid = 1000 * mh2 + mh3
gen uniqid_spouse = 1000 * mh7 + mh8
sort uniqid mh9
//keep uniqid* mh11 mh16 mh19 mh12
